import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import productsDataDisplay from '@/components/productsDataDisplay'
import chinaMap from '@/components/charts/chinaMap'
import dataMap from '@/components/charts/dataMap'
import hot from '@/components/charts/hot'
import test from '@/components/test'
import login from '@/components/login/login'
import adminIndex from '@/components/admin/adminIndex'
import producerProducts from '@/components/producer/producerProducts'
import producerProductsInfo from '@/components/producer/producerProductsInfo'
import nongzi_nongji from '@/components/producer/nongzi&nongji'
import hangqing from '@/components/producer/hangqing'
import zhengce from '@/components/producer/zhengce'
import newsPage from '@/components/producer/newsPage'
import governmentHome from '@/components/government/governmentHome'
import governmentHangqing from '@/components/government/hangqing'
import governmentQueryResult from '@/components/government/governmentQueryResult'
import governmentHotQueryResult from '@/components/government/hotQueryResult'
import governmentNyyw from '@/components/government/nyyw'
import governmentNewsPage from '@/components/government/newsPage'
import governmentCountryNewsPage from '@/components/government/countryNewsPage'
import governmentZcfgNewsPage from '@/components/government/zcfgNewsPage'
import consumerGongYing from '@/components/consumer/gongying'
import consumerHangqing from '@/components/consumer/hangqing'
import consumerZixun from '@/components/consumer/zixun'
import consumerHomePage from '@/components/consumer/homePage'
import consumerQueryResult from '@/components/consumer/QueryResult'
import consumerHotQueryResult from '@/components/consumer/hotQueryResult'
import consumerBroadcastInfo from '@/components/consumer/broadcastInfo'
import governmentBroadcastInfo from '@/components/government/broadcastInfo'
import home from '@/components/home'

Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // },
    {
      path: '/productsDataDisplay',
      name: 'productsDataDisplay',
      component:productsDataDisplay,
      
    },
    {
      path: '/chinaMap',
      name: 'chinaMap',
      component: chinaMap
    },
    {
      path: '/dataMap',
      name: 'dataMap',
      component: dataMap
    },
    {
      path: '/hot',
      name: 'hot',
      component: hot
    },
    {
      path: '/test',
      name: 'test',
      component: test
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/adminIndex',
      name: 'adminIndex',
      component: adminIndex
    },
    {
      path: '/',
      name: 'producerProducts',
      component: producerProducts
    },
    {
      path: '/producerProductsInfo',
      name: 'producerProductsInfo',
      component: producerProductsInfo
    },
    {
      path: '/nongzi_nongji',
      name: 'nongzi_nongji',
      component: nongzi_nongji
    },
    {
      path: '/hangqing',
      name: 'hangqing',
      component: hangqing
    },
    {
      path: '/zhengce',
      name: 'zhengce',
      component: zhengce
    },
    {
      path: '/newsPage',
      name: 'newsPage',
      component: newsPage
    },
    {
      path: '/governmentHome',
      name: 'governmentHome',
      component: governmentHome
    },
    {
      path: '/governmentHangqing',
      name: 'governmentHangqing',
      component: governmentHangqing
    },
    {
      path: '/governmentQueryResult',
      name: 'governmentQueryResult',
      component: governmentQueryResult
    },
    {
      path: '/governmentHotQueryResult',
      name: 'governmentHotQueryResult',
      component: governmentHotQueryResult
    },
    {
      path: '/governmentNyyw',
      name: 'governmentNyyw',
      component: governmentNyyw
    },
    {
      path: '/governmentNewsPage',
      name: 'governmentNewsPage',
      component: governmentNewsPage
    },
    {
      path: '/governmentCountryNewsPage',
      name: 'governmentCountryNewsPage',
      component: governmentCountryNewsPage
    },
    {
      path: '/governmentZcfgNewsPage',
      name: 'governmentZcfgNewsPage',
      component: governmentZcfgNewsPage
    },
    {
      path: '/consumerGongYing',
      name: 'consumerGongYing',
      component: consumerGongYing
    },
    {
      path: '/consumerHangqing',
      name: 'consumerHangqing',
      component: consumerHangqing
    },
    {
      path: '/consumerZixun',
      name: 'consumerZixun',
      component: consumerZixun
    },
    {
      path: '/consumerHomePage',
      name: 'consumerHomePage',
      component: consumerHomePage
    },
    {
      path: '/consumerQueryResult',
      name: 'consumerQueryResult',
      component: consumerQueryResult
    },
    {
      path: '/consumerHotQueryResult',
      name: 'consumerHotQueryResult',
      component: consumerHotQueryResult
    },
    {
      path: '/consumerBroadcastInfo',
      name: 'consumerBroadcastInfo',
      component: consumerBroadcastInfo
    },
    {
      path: '/governmentBroadcastInfo',
      name: 'governmentBroadcastInfo',
      component: governmentBroadcastInfo
    },
    {
      path: '/home',
      name: 'home',
      component: home
    },
  ]
})
